package com.duobaoyu.dby.supply.db.entity.config;

import com.baomidou.mybatisplus.annotation.*;
import com.duobaoyu.dby.common.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Author 001
 * @Date 2022/6/7 10:46
 * @Version 1.0
 * @Description
 */
@EqualsAndHashCode(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
@TableName(value = "sc_balance_warn", autoResultMap = true)
public class BalanceWarn extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 5752863819013049440L;
	/**
	 * 主键ID
	 */
	@TableId(type = IdType.ASSIGN_ID)
	private Long id;

	/**
	 * 三方渠道
	 */
	@ApiModelProperty(value = "三方渠道")
	private String channelCode;

	/**
	 * 功能是否开启
	 */
	@ApiModelProperty(value = "功能是否开启，0：false  1：true")
	private Boolean enable;

	@ApiModelProperty(value = "预警金额 单位分 ")
	private BigDecimal warnAmount;

	@ApiModelProperty(value = "接受短信手机号  ")
	private String phoneNumber;
	/**
	 * 版本号-用作乐观锁
	 */
	@Version
	private Integer version;

	/**
	 * 是否删除 0-否 1-是
	 */
	@ApiModelProperty(value = "是否删除 0-否 1-是")
	@TableLogic(value = "0", delval = "1")
	private Integer delFlag;

}
